package arrays;

import java.util.Arrays;
import java.util.Scanner;

public class arrays_1 {
    public static void main (String [] args ){
        int number ;
        Scanner scanner = new Scanner( System.in );
        System.out.println( " 请输入一个整数：" );
        number = scanner.nextInt();
        int n = (int)Math.log10(number) + 1;
        int intarrays[] = new int[n];
        int i = 0 ;
        int j = (int)Math.pow(10,n-1) ;
        while (i < n){
            intarrays[i]= number / j % 10;
            j /= 10 ;
            i++ ;
        }
        System.out.println( Arrays.toString(intarrays));
    }
}
